﻿<%@ Page Title="Information's Account" Language="C#" MasterPageFile="~/Web/Site.Master" AutoEventWireup="true" CodeBehind="Information.aspx.cs" Inherits="pwblog.Web.Information" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Information's <asp:Label ID="lblName" runat="server" Text="Label"></asp:Label></h1>
    <hr />
    <asp:DetailsView ID="dvAccount" runat="server" Height="50px" Width="278px"
    AutoGenerateRows="False" onitemupdating="dvAccount_ItemUpdating" 
        onmodechanging="dvAccount_ModeChanging" 
        onitemcommand="dvAccount_ItemCommand" CellPadding="4" ForeColor="#333333" GridLines="None"

    >
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
        <EditRowStyle BackColor="#999999" />
        <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
    <Fields>
        <asp:TemplateField HeaderText="UserName">
            <ItemTemplate>
                <asp:Label ID="lblUserName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
                
        <asp:TemplateField HeaderText="Birthday">
            <ItemTemplate>
                <asp:Label ID="lblBirthday" runat="server" Text='<%# Eval("Birthday") %>'></asp:Label>
            </ItemTemplate>
            <EditItemTemplate>
                <asp:TextBox ID="tbBirthday" runat="server" Text='<%# Eval("Birthday") %>'></asp:TextBox>
            </EditItemTemplate>
        </asp:TemplateField>
                
        <asp:TemplateField HeaderText="Address">
            <ItemTemplate>
                <asp:Label ID="lblAddress" runat="server" Text='<%# Eval("Address") %>'></asp:Label>
            </ItemTemplate>
            <EditItemTemplate>
                <asp:TextBox ID="tbAddress" runat="server" Text='<%# Eval("Address") %>'></asp:TextBox>
            </EditItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField HeaderText="Number Of Article">
            <ItemTemplate>
                <asp:Label ID="lblNumArticle" runat="server" Text='<%# Eval("NumberOfArticle") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:CommandField ShowEditButton="True" CancelText="Cancel" EditText="Edit" UpdateText="Update" />
        <asp:CommandField ShowSelectButton="true" SelectText="ChangePassword" />
    </Fields>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    </asp:DetailsView>
</asp:Content>

